package com.unei.guava.demo.base;

import com.google.common.base.Optional;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

public class OptionalTest {

	Log log=LogFactory.getLog(getClass());
	
	@Test
	public void testOptional(){
		Optional<Integer> optional=Optional.of(6);
		if(optional.isPresent())
			System.out.println(optional.get());
		
		log.info("ok");
		log.error("error");
	}
}
